package com.xms.datacore.provider;

import com.xms.core.model.PagedList;
import com.xms.datacore.SqlDescriptor;
import com.xms.sdk.core.DynamicData;

import java.sql.SQLException;
import java.util.List;

/**
 * <p>
 * IDataRepositoryBase
 * </p>
 *
 * @author migo
 * @since 2021/9/4
 */
public interface IDataRepositoryBase {
    boolean execute(SqlDescriptor sqlDescriptor) throws SQLException;
    List<DynamicData> query(SqlDescriptor sqlDescriptor) throws SQLException;
    PagedList<DynamicData> page(int page, int pageSize, SqlDescriptor sqlDescriptor) throws Exception;
    DynamicData one(SqlDescriptor sqlDescriptor) throws Exception;
    boolean exists(SqlDescriptor sqlDescriptor) throws SQLException;
}
